package com.cold.manage.controller;

import com.cold.manage.service.IDeviceDetailsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class DeviceDetailsController {

    @Resource
    private IDeviceDetailsService deviceDetailsService;

    @RequestMapping("/init-device-cache")
    public String saveDetailsDetails(){
        deviceDetailsService.saveDeviceDetailsToRedis();
        return "ok";
    }
}
